Adwaita: flatten buttons slightly.
authorJakub Steiner <jimmac@gmail.com>
Wed, 18 Jun 2014 14:36:00 +0000 (16:36 +0200)
committerJakub Steiner <jimmac@gmail.com>
Wed, 18 Jun 2014 14:36:41 +0000 (16:36 +0200)
- gets rid of the specialcase for dark too.

gtk/resources/theme/Adwaita/_drawing.scss
gtk/resources/theme/Adwaita/gtk-contained.css

index a532051f2f58d21030486c7d0ea4a4aafb2f1530..17140c733ca5c23cdfb417652c3b700fb444adbe 100644 (file)
@@ -124,20 +124,11 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
   // normal button
   //
     color: $tc;
-    @if lightness($c) < 50% { //darker buttons need a less contrasty gradient
-      background-image: linear-gradient(to bottom,
+    background-image: linear-gradient(to bottom,
                                   lighten($c,5%),
                                   $c 40%,
                                   darken($c,5%)
                                   );
-    }
-    @else {
-      background-image: linear-gradient(to bottom,
-                                  lighten($c,15%),
-                                  $c 40%,
-                                  darken($c,10%)
-                                  );
-    }
 
     @if $c!=$bg_color { @include _button_border_color($c); }
     @else { border-color: $borders_color; }
index 7554c6500e32c5dacafb638ce887f4f8247c4051..161be731c45c90f5c896fb9d51794b44b6cf13f4 100644 (file)
   border-width: 1px;
   border-style: solid;
   color: #2e3436;
-  background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+  background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
   border-color: #a1a1a1;
   text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
   icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);
     border-width: 1px;
     border-style: solid;
     color: white;
-    background-image: linear-gradient(to bottom, #89b7e6, #4a90d9 40%, #2a76c6);
+    background-image: linear-gradient(to bottom, #5f9ddd, #4a90d9 40%, #3583d5);
     border-color: #1c5187;
     text-shadow: 0 -1px rgba(0, 0, 0, 0.54353);
     icon-shadow: 0 -1px rgba(0, 0, 0, 0.54353);
     border-width: 1px;
     border-style: solid;
     color: white;
-    background-image: linear-gradient(to bottom, #f47070, #ef2929 40%, #d51010);
+    background-image: linear-gradient(to bottom, #f14141, #ef2929 40%, #ed1212);
     border-color: #8e0b0b;
     text-shadow: 0 -1px rgba(0, 0, 0, 0.56078);
     icon-shadow: 0 -1px rgba(0, 0, 0, 0.56078);
@@ -469,7 +469,7 @@ GtkColorButton.button {
   border-width: 1px;
   border-style: solid;
   color: #2e3436;
-  background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+  background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
   border-color: #a1a1a1;
   text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
   icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);
@@ -521,7 +521,7 @@ GtkColorButton.button {
   border-width: 1px;
   border-style: solid;
   color: #2e3436;
-  background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+  background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
   border-color: #a1a1a1;
   text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
   icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);
@@ -566,7 +566,7 @@ GtkColorButton.button {
   border-width: 1px;
   border-style: solid;
   color: #2e3436;
-  background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+  background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
   border-color: #a1a1a1;
   text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
   icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);
@@ -738,7 +738,7 @@ GtkComboBox {
       border-width: 1px;
       border-style: solid;
       color: white;
-      background-image: linear-gradient(to bottom, #89b7e6, #4a90d9 40%, #2a76c6);
+      background-image: linear-gradient(to bottom, #5f9ddd, #4a90d9 40%, #3583d5);
       border-color: #1c5187;
       text-shadow: 0 -1px rgba(0, 0, 0, 0.54353);
       icon-shadow: 0 -1px rgba(0, 0, 0, 0.54353);
@@ -797,7 +797,7 @@ GtkComboBox {
         border-width: 1px;
         border-style: solid;
         color: #2e3436;
-        background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+        background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
         border-color: #a1a1a1;
         text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
         icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);
@@ -1306,7 +1306,7 @@ GtkSwitch {
     border-width: 1px;
     border-style: solid;
     color: #2e3436;
-    background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+    background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
     border-color: #a1a1a1;
     text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
     icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);
@@ -1691,7 +1691,7 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
     border-width: 1px;
     border-style: solid;
     color: #2e3436;
-    background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+    background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
     border-color: #a1a1a1;
     text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
     icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);
@@ -2220,7 +2220,7 @@ GtkMessageDialog .titlebar {
   border-width: 1px;
   border-style: solid;
   color: #2e3436;
-  background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+  background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
   border-color: #a1a1a1;
   text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
   icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);
@@ -2340,7 +2340,7 @@ GtkInfoBar {
     border-width: 1px;
     border-style: solid;
     color: white;
-    background-image: linear-gradient(to bottom, #89b7e6, #4a90d9 40%, #2a76c6);
+    background-image: linear-gradient(to bottom, #5f9ddd, #4a90d9 40%, #3583d5);
     border-color: #1c5187;
     text-shadow: 0 -1px rgba(0, 0, 0, 0.54353);
     icon-shadow: 0 -1px rgba(0, 0, 0, 0.54353);
@@ -2506,7 +2506,7 @@ GtkColorChooserWidget #add-color-button {
     border-width: 1px;
     border-style: solid;
     color: #2e3436;
-    background-image: linear-gradient(to bottom, white, #ededed 40%, lightgray);
+    background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0);
     border-color: #a1a1a1;
     text-shadow: 0 1px rgba(255, 255, 255, 0.76923);
     icon-shadow: 0 1px rgba(255, 255, 255, 0.76923);